package com.sumainfor.pc.market.controller.gmio;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.gmio.TcmktPactTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 合同模板信息
 * <p>
 *
 * @author:zhoucong
 * @create: 2019-05-28 15:49
 **/
@Controller
@RequestMapping("/key/tcpTemplate")
public class TcmktPactTemplateController {

    @Autowired
    TcmktPactTemplateService tcmktPactTemplateService;

    /**
    * <p>
    * 根据合同编号获取水电燃的收费标准
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/getTpTemplate")
    public JsonResult getTpTemplate(@RequestParam Map<String,Object> params){
        return tcmktPactTemplateService.getTpTemplate(params);
    }
}
